package com.dragon.pear.modules.sample.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.sample.domain.entity.SmpGoodsEntity;
import com.dragon.pear.modules.sample.web.model.params.create.SmpGoodsCreateParam;
import com.dragon.pear.modules.sample.web.model.params.update.SmpGoodsUpdateParam;
import com.dragon.pear.modules.sample.web.model.params.search.SmpGoodsSearchParam;
import com.dragon.pear.modules.sample.web.model.params.order.SmpGoodsOrderParam;
import com.dragon.pear.modules.sample.web.model.results.SmpGoodsResult;
import com.dragon.pear.modules.sample.dao.repository.SmpGoodsRepository;
import com.dragon.pear.modules.sample.service.assistants.converters.SmpGoodsConverter;
import com.dragon.pear.modules.sample.service.def.SmpGoodsService;
import com.dragon.pear.modules.sample.web.api.SmpGoodsApi;

/**
 * @author Chris Chan
 * Create on 2025-10-15 17:59
 * Use for: 商品 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("smp/goods")
public class SmpGoodsController implements SmpGoodsApi, BaseCrudController<
        SmpGoodsEntity,
        SmpGoodsCreateParam,
        SmpGoodsUpdateParam,
        SmpGoodsSearchParam,
        SmpGoodsOrderParam,
        SmpGoodsResult,
        SmpGoodsRepository,
        SmpGoodsConverter,
        SmpGoodsService
        > {

    @Autowired
    SmpGoodsService smpGoodsService;

    @Override
    public SmpGoodsService getService() {
        return smpGoodsService;
    }
}